home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xwall / bin.wall / Makefile next >
Encoding:
Makefile  |  1995-06-20  |  1.6 KB  |  63 lines

  1. #
  2. #    Makefile for wall
  3. #
  4. DESTDIR=
  5. #
  6. #   For ConvexOS 9.0,  add -pcc to CFLAGS.
  7. #   For UNICOS 5.1.11, add -DCRAY.
  8. #    
  9. #   If your xwall lives in a non-standard place, define:
  10. #
  11. #   -DXWALL=\"<path to xwall>\"
  12. #
  13. CFLAGS=    -O -DUW
  14.  
  15. PROGRAM=    wall
  16. SRCS=        wall.c
  17. LIBS=
  18. #
  19. #   wall needs the BSD libraries under UNICOS.
  20. #
  21. #LIBS=        -lbsd -lnet
  22.  
  23. ${PROGRAM}:    ${SRCS}
  24.     ${CC} ${CFLAGS} -o $@ $@.c ${LIBS}
  25.  
  26. install:
  27.     install -g tty -m 2755 -s ${PROGRAM} ${DESTDIR}/bin/${PROGRAM}
  28.  
  29. tags:
  30.     ctags -tdw *.c 
  31.  
  32. clean:
  33.     rm -f ${PROGRAM} a.out core *.s *.o made
  34.  
  35.  
  36. depend: 
  37.     for i in ${SRCS}; do \
  38.         cc -M ${INCPATH} $$i | sed 's/\.o//' | \
  39.         awk ' { if ($$1 != prev) \
  40.         { if (rec != "") print rec; rec = $$0; prev = $$1; } \
  41.         else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
  42.         else rec = rec " " $$2 } } \
  43.         END { print rec } ' >> makedep; done
  44.     echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
  45.     echo '$$r makedep' >>eddep
  46.     echo 'w' >>eddep
  47.     cp Makefile Makefile.bak
  48.     ed - Makefile < eddep
  49.     rm eddep makedep
  50.     echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
  51.     echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
  52.     echo '# see make depend above' >> Makefile
  53.  
  54. # DO NOT DELETE THIS LINE -- make depend uses it
  55. # DEPENDENCIES MUST END AT END OF FILE
  56. wall: wall.c /usr/include/stdio.h /usr/include/utmp.h /usr/include/errno.h
  57. wall: /usr/include/signal.h /usr/include/sys/time.h /usr/include/fcntl.h
  58. wall: /usr/include/sys/file.h /usr/include/sys/types.h /usr/include/sys/types.h
  59. wall: /usr/include/sys/stat.h
  60. # DEPENDENCIES MUST END AT END OF FILE
  61. # IF YOU PUT STUFF HERE IT WILL GO AWAY
  62. # see make depend above
  63.